package com.opp.demo04;

public class Person {
    {
        System.out.println("匿名代码块");
        //代码块(匿名代码块)
    }
    //2
    static{
        System.out.println("静态代码块");
        //静态代码块
    }
    //1
    public Person(){
        System.out.println("构造方法");
        //构造方法
    }
    //3

    public static void main(String[] args) {
        Person person1 = new Person();
        System.out.println("==============================================");
        Person person2 = new Person();

    }
}
